import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const TCHYURL = BASEURL.TCHYURL;
const carrierOrderApi = {
  //承运订单   待调度订单列表
  getWaitDispatchList(params) {
    let url = TCHYURL + "/supplier/order/list/unallocated";
    return myaxios.get(url, params);
  },
  // 订单查询列表
  getOrderQueryList(params) {
    let url = TCHYURL + "/supplier/order/list";
    return myaxios.post(url, params);
  },
  //订单查询列表详情
  getOrderQueryDetails(params) {
    let url = TCHYURL + "/supplier/order/list/detail";
    return myaxios.get(url, params);
  },
  //订单列表详情结算单列表
  getOrderQueryBillList(params) {
    let url = TCHYURL + "/supplier/order/fleet/bill/list";
    return myaxios.get(url, params);
  },
  //订单货物列表
  OrderGoodsList(params) {
    let url = TCHYURL + "/supplier/order/goods";
    return myaxios.get(url, params);
  },
  


  // 通过车队id查询司机信息
  getOrderQueryDriver(params) {
    let url = TCHYURL + "/supplier/order/fleet/driver/list";
    return myaxios.get(url, params);
  },
  // 新增调度司机信息
  addDriver(params) {
    let url = TCHYURL + "/supplier/order/dispatch/driver/add";
    return myaxios.post(url, params);
  },

};
export default carrierOrderApi;
